﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Domain.Model.Program>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Program: <%: Model.Name %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Program: <%: Model.Name %></h2>

    <p>
        Description: <%: Model.Description %>
    </p>
    
    <p>
        <%: Html.ActionLink("Back to Portfolio", "Index", "Portfolio") %> |  
        <% if (Helpers.IsAdmin(this)){%>
            <%: Html.ActionLink("Edit", "Edit", "Program", new { id = Model.Id }, null) %>
        <% } %>
    </p>

    <p>
        Projects within this program
    </p>

    <% Html.RenderPartial("ReadOnlyProjectList", Model.Projects); %>

</asp:Content>

